/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nlp.visualization.pojo.weibo;


import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author LXM
 */
@Entity
@Table(name = "t_weibo_content_mod_1")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "TWeiboContentMod1.findAll", query = "SELECT t FROM TWeiboContentMod1 t"),
    @NamedQuery(name = "TWeiboContentMod1.findById", query = "SELECT t FROM TWeiboContentMod1 t WHERE t.id = :id"),
    @NamedQuery(name = "TWeiboContentMod1.findByWeiboItemId", query = "SELECT t FROM TWeiboContentMod1 t WHERE t.weiboItemId = :weiboItemId"),
    @NamedQuery(name = "TWeiboContentMod1.findByUserId", query = "SELECT t FROM TWeiboContentMod1 t WHERE t.userId = :userId"),
    @NamedQuery(name = "TWeiboContentMod1.findByPublishTime", query = "SELECT t FROM TWeiboContentMod1 t WHERE t.publishTime = :publishTime"),
    @NamedQuery(name = "TWeiboContentMod1.findByDevices", query = "SELECT t FROM TWeiboContentMod1 t WHERE t.devices = :devices"),
    @NamedQuery(name = "TWeiboContentMod1.findByIsResend", query = "SELECT t FROM TWeiboContentMod1 t WHERE t.isResend = :isResend"),
    @NamedQuery(name = "TWeiboContentMod1.findByUpvote", query = "SELECT t FROM TWeiboContentMod1 t WHERE t.upvote = :upvote"),
    @NamedQuery(name = "TWeiboContentMod1.findByRepeat", query = "SELECT t FROM TWeiboContentMod1 t WHERE t.repeat = :repeat"),
    @NamedQuery(name = "TWeiboContentMod1.findByEmotion", query = "SELECT t FROM TWeiboContentMod1 t WHERE t.emotion = :emotion"),
    @NamedQuery(name = "TWeiboContentMod1.findByTheme", query = "SELECT t FROM TWeiboContentMod1 t WHERE t.theme = :theme")})
public class TWeiboContentMod1 implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 64)
    @Column(name = "weibo_item_id")
    private String weiboItemId;
    @Column(name = "user_id")
    private Integer userId;
    @Lob
    @Size(max = 16777215)
    @Column(name = "text")
    private String text;
    @Size(max = 32)
    @Column(name = "publish_time")
    private String publishTime;
    @Size(max = 128)
    @Column(name = "devices")
    private String devices;
    @Column(name = "is_resend")
    private Character isResend;
    @Column(name = "upvote")
    private Integer upvote;
    @Column(name = "repeat")
    private Integer repeat;
    @Size(max = 128)
    @Column(name = "emotion")
    private String emotion;
    @Size(max = 128)
    @Column(name = "theme")
    private String theme;
    @Lob
    @Size(max = 16777215)
    @Column(name = "json_source")
    private String jsonSource;

    public TWeiboContentMod1() {
    }

    public TWeiboContentMod1(Integer id) {
        this.id = id;
    }

    public TWeiboContentMod1(Integer id, String weiboItemId) {
        this.id = id;
        this.weiboItemId = weiboItemId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getWeiboItemId() {
        return weiboItemId;
    }

    public void setWeiboItemId(String weiboItemId) {
        this.weiboItemId = weiboItemId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(String publishTime) {
        this.publishTime = publishTime;
    }

    public String getDevices() {
        return devices;
    }

    public void setDevices(String devices) {
        this.devices = devices;
    }

    public Character getIsResend() {
        return isResend;
    }

    public void setIsResend(Character isResend) {
        this.isResend = isResend;
    }

    public Integer getUpvote() {
        return upvote;
    }

    public void setUpvote(Integer upvote) {
        this.upvote = upvote;
    }

    public Integer getRepeat() {
        return repeat;
    }

    public void setRepeat(Integer repeat) {
        this.repeat = repeat;
    }

    public String getEmotion() {
        return emotion;
    }

    public void setEmotion(String emotion) {
        this.emotion = emotion;
    }

    public String getTheme() {
        return theme;
    }

    public void setTheme(String theme) {
        this.theme = theme;
    }

    public String getJsonSource() {
        return jsonSource;
    }

    public void setJsonSource(String jsonSource) {
        this.jsonSource = jsonSource;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TWeiboContentMod1)) {
            return false;
        }
        TWeiboContentMod1 other = (TWeiboContentMod1) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "dao.TWeiboContentMod1[ id=" + id + " ]";
    }
    
}
